
            	<form action="#" AjaxForm="/AdminMain/Account/DoAdd/"  AjaxVerify='OnChange'  AjaxSuccess="PageRefresh">
            	
					<p>
                        <label for="textfield"><strong>昵称：</strong></label>
                        <input id="NickName"  maxlength="40"  name="NickName" type="text"  class="inputbox"> <br>
                        <span id="NickNamespan" class="smltxt red"></span>
						<br>
                    </p>
                    <p>
                    	<label for="errorbox"><span ><strong>权限组:</strong></span></label>
                        <select style="width:320px" name="PurviewTeam">
                        {% for info in Model   %}
                    	<option value="{{info.id}}">{{info.Title}}</option>
						{% endfor  %}
                        </select>
						<br>	<br>
                    </p>
					
						<p>
                        <label for="textfield"><strong>登录账号：</strong></label>
                        <input id="Account"  maxlength="50"  name="Account" type="text"  class="inputbox"> <br>
                        <span id="Accountspan" class="smltxt red"></span>
						<br>
                    </p>
					
					<p>
                        <label for="textfield"><strong>密码：</strong></label>
                        <input id="PassWord"  maxlength="30"  name="PassWord" type="password"  class="inputbox"> <br>
						<span id="PassWordtspan" class="smltxt red"></span>
						<br>
                    </p>
					
					<p>
                        <label for="textfield"><strong>确认密码：</strong></label>
                        <input id="PassWord_dz"  maxlength="30"   type="password"  class="inputbox"> <br>
						<br>
                    </p>
					
					
                  <input type="submit" id="submitoChange" value="提  交" class="btn"> 
                </form>
				


<script>
$(InfoPage)


 function OnChange()
 {

 	$("#NickNamespan").html("");
	$("#Accountspan").html("");
	$("#PassWordtspan").html("");
    if($("#NickName").val()+"a"=="a")
	{
		$("#NickNamespan").html("请输入昵称");
		
	}else  if($("#Account").val()+"a"=="a")
	{
		$("#Accountspan").html("请输入账号");
		
	}else  if($("#PassWord").val()+"a"=="a")
	{
		$("#PassWordtspan").html("请输入密码");
		
	}else if($("#PassWord_dz").val()!=$("#PassWord").val())
	{
		$("#PassWordtspan").html("两次输入的密码不一致");
		
	}else
	{
		return true;
	}
 
	return false;
 }
 

</script>